

#ifndef _SHELL_RESBACKPACKITEM_MESSAGE_H_
#define _SHELL_RESBACKPACKITEM_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "EquipInfo.h"
//#include <vector>
//#include "ItemInfo.h"
//#include "TokenInfo.h"
using namespace std;

class ResBackpackItemMessage : public Message
{
	public:
	ResBackpackItemMessage();
	~ResBackpackItemMessage();
	void reset();
	ResBackpackItemMessage* clone();
	static const int _ID;
	//背包格子上限
	int32 backNum;
	//背包装备信息
	vector<EquipInfo*> equis;
	//背包物品信息
	vector<ItemInfo*> items;
	//令牌信息
	vector<TokenInfo*> tokens;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
